/**
  ******************************************************************************
  * @file   :   .c
  * @version:
  * @author :
  * @brief  :
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright(c) . BLUEX Microelectronics.
  * All rights reserved.</center></h2>
  *
  *
  ******************************************************************************
  */
/* config --------------------------------------------------------------------*/

/* includes ------------------------------------------------------------------*/
#include <stdint.h>
#include "bx_config.h"
#include "reg_sysc_cpu.h"
#include "reg_sysc_cpu_apollo_00.h"
#include "reg_sysc_per.h"
#include "reg_sysc_per_apollo_00.h"
#include "reg_sysc_awo.h"
#include "reg_sysc_awo_apollo_00.h"
#include "compiler_flag.h"

/* private define ------------------------------------------------------------*/

/* private typedef -----------------------------------------------------------*/

/* private variables ---------------------------------------------------------*/

/* exported variables --------------------------------------------------------*/

/* private macros ------------------------------------------------------------*/

/*============================= private function =============================*/

/*========================= end of private function ==========================*/


/*============================= exported function ============================*/
/** ---------------------------------------------------------------------------
 * @brief   :
 * @note    :
 * @param   :
 * @retval  :
-----------------------------------------------------------------------------*/
void srst_awo( uint32_t mask )
{
#if HW_BX_VERSION == 00
    sysc_awo_awo_reset_signal_set( mask );
    sysc_awo_awo_reset_signal_set( mask >> 1 );
#endif
}
/** ---------------------------------------------------------------------------
 * @brief   :
 * @note    :
 * @param   :
 * @retval  :
-----------------------------------------------------------------------------*/
N_XIP_SECTION void srst_cpu( uint32_t mask )
{
    sysc_cpu_srst_set( mask );
    sysc_cpu_srst_set( mask >> 1 );
}
/** ---------------------------------------------------------------------------
 * @brief   :
 * @note    :
 * @param   :
 * @retval  :
-----------------------------------------------------------------------------*/
void srst_per( uint32_t mask )
{
    sysc_per_srst_set( mask );
    sysc_per_srst_set( mask >> 1 );
}

/*========================= end of exported function =========================*/


/*============================= import function ==============================*/

/*=========================== end of import function =========================*/


/*============================ interrupt function ============================*/

/*========================= end of interrupt function ========================*/


/******************** (C) COPYRIGHT BLUEX **********************END OF FILE****/

